package com.yuou.service;

import java.util.List;
import java.util.Set;
import java.util.Map;

import com.yuou.common.base.CoreService;
import com.yuou.common.utils.Tree;
import com.yuou.model.Dept;
import com.yuou.model.Menu;


public interface DeptService extends CoreService<Dept> {
	/*Tree<Dept> getSysDeptTree(Integer id);

    List<Tree<Dept>> listDeptTree(Integer id);
	
    Set<String> listPerms(Integer userId);
    
    int selectCountByid(Integer id);
    
    Tree<Dept> getTree();
	
	Tree<Dept> getTree(Integer id);
    
	Dept selectById(Integer id);
    
	int listParentDept();*/
	
	List<Dept> selectAll(Map<String, Object> map);
	
	Tree<Dept> getTree();
	
	boolean checkDeptHasUser(int deptId);
	
	Dept selectById(Integer id);
	
	String selectNameByid(Integer parentId);
	
	int deleteByPrimaryKey(Integer id);
	
	int selectCountByid(Integer id);
	
	int updateByPrimaryKey(Dept dept);
	
	int insertDept(Dept dept);
}
